package cn.net.xyan.yypt.service

import cn.net.xyan.yypt.dto.CallbackBizContentRsp
import javax.jws.WebMethod
import javax.jws.WebParam
import javax.jws.WebService

@WebService(targetNamespace = "http://www.yueyangyy.com/", name = "PayOrder")
interface PayOrderService {

    @WebMethod(operationName = "directCreate")
    fun createLinkingCloudPayOrder(@WebParam(name = "req", targetNamespace = "") req: String): String

    @WebMethod(operationName = "createPayOrder")
    fun createPayOrder(@WebParam(name = "req", targetNamespace = "") req: String): String

    @WebMethod(operationName = "refund")
    fun refund(@WebParam(name = "req", targetNamespace = "") req: String): String

    @WebMethod(operationName = "query")
    fun query(@WebParam(name = "req", targetNamespace = "") req: String): String

    @WebMethod(operationName = "barcode")
    fun barcode(@WebParam(name = "req", targetNamespace = "") req: String):String
}



interface PayOrderCallbackService{
    fun callback(notify: CallbackBizContentRsp):String
}